<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div></div>
  <div class="box-shadow">
  </div>
  <script>
    const dom = document.querySelector('.box-shadow')
    const shadowDom = dom.attachShadow({ mode: 'open' })
    const link = document.createElement('link')
    link.setAttribute('rel', 'stylesheet')
    link.setAttribute('href', './common.css')
    shadowDom.innerHTML = '<div>999</div>'
    shadowDom.appendChild(link)
  </script>
</body>
</html>